<?php /* Smarty version 2.6.26, created on 2012-08-18 13:36:13
         compiled from /usr/local/zend/apache2/htdocs/markt/templates/EyeCandy/module/megadropdown.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', '/usr/local/zend/apache2/htdocs/markt/templates/EyeCandy/module/megadropdown.html', 2, false),)), $this); ?>

<?php if (count($this->_tpl_vars['content_data']['CATEGORIES_DATA']) > 0): ?>
<div id="megadropdown_box_id_<?php echo $this->_tpl_vars['content_data']['current_category_id']; ?>
" class="megadropdown clearfix" style="display:none">
	<div class="megadropdown-shadow clearfix">
		<div class="megadropdown-inside clearfix">
			<ul>

				<?php $_from = $this->_tpl_vars['content_data']['CATEGORIES_DATA']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cat_data'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cat_data']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['categories_item']):
        $this->_foreach['cat_data']['iteration']++;
?>
					<?php if (count($this->_tpl_vars['categories_item']['children']) > 0): ?><?php $this->assign('children_found', 'true'); ?><?php endif; ?>
				<?php endforeach; endif; unset($_from); ?>

				<?php if ($this->_tpl_vars['children_found']): ?>
					<?php $_from = $this->_tpl_vars['content_data']['CATEGORIES_DATA']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cat_data'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cat_data']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['categories_item']):
        $this->_foreach['cat_data']['iteration']++;
?>
					<li class="top_li">
						<a href="<?php echo $this->_tpl_vars['categories_item']['data']['url']; ?>
"><?php echo $this->_tpl_vars['categories_item']['data']['name']; ?>
<?php if ($this->_tpl_vars['categories_item']['data']['products_count']): ?> (<?php echo $this->_tpl_vars['categories_item']['data']['products_count']; ?>
)<?php endif; ?></a>
						<?php if (count($this->_tpl_vars['categories_item']['children']) > 0): ?>
						<ul>
							<?php $_from = $this->_tpl_vars['categories_item']['children']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['children_item']):
?>
							<li class=""><a href="<?php echo $this->_tpl_vars['children_item']['data']['url']; ?>
" rel="<?php echo $this->_tpl_vars['children_item']['data']['id']; ?>
"><?php echo $this->_tpl_vars['children_item']['data']['name']; ?>
<?php if ($this->_tpl_vars['children_item']['data']['products_count']): ?> (<?php echo $this->_tpl_vars['children_item']['data']['products_count']; ?>
)<?php endif; ?></a></li>
							<?php endforeach; endif; unset($_from); ?>
						</ul>
						<?php endif; ?>
					</li>
					<?php endforeach; endif; unset($_from); ?>
					
				<?php else: ?>
					<li>
						<ul>
							<?php $_from = $this->_tpl_vars['content_data']['CATEGORIES_DATA']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cat_data'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cat_data']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['categories_item']):
        $this->_foreach['cat_data']['iteration']++;
?>
							<li><a href="<?php echo $this->_tpl_vars['categories_item']['data']['url']; ?>
"><?php echo $this->_tpl_vars['categories_item']['data']['name']; ?>
<?php if ($this->_tpl_vars['categories_item']['data']['products_count']): ?> (<?php echo $this->_tpl_vars['categories_item']['data']['products_count']; ?>
)<?php endif; ?></a></li>
							<?php endforeach; endif; unset($_from); ?>
						</ul>
					</li>
				<?php endif; ?>

			</ul>
		</div>

	</div>
</div>
<?php endif; ?>